package core.ui.demo;

import javafx.geometry.Orientation;
import javafx.scene.control.Slider;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class DemoSlider
{
	public static Slider getSlider()
	{
		Slider slider = new Slider();
		slider.setMaxWidth(70);
		return slider;
	}
	public static Slider getSliderV()
	{
		Slider slider = new Slider();
		slider.setOrientation(Orientation.VERTICAL);
		slider.setMaxHeight(100);
		return slider;
	}
	public static Slider getTick()
	{
		Slider slider = new Slider();
		slider.setShowTickLabels(true);
		slider.setShowTickMarks(true);
		slider.setMaxWidth(100);
		return slider;
	}
	public static Slider getTickV()
	{
		Slider slider = new Slider();
		slider.setOrientation(Orientation.VERTICAL);
		slider.setShowTickLabels(true);
		slider.setShowTickMarks(true);
		slider.setMaxHeight(100);
		return slider;
	}
}
